# 作者：SP
# 开发时间：2024/1/3 22:08
from demo import Restaurant
class IceCreamStand(Restaurant):
    def __init__(self,restaurant_name,cuisine,flavors):
        """初始化方法，初始化父类和子类的方法"""
        """继承父类的方法和属性"""
        super().__init__(restaurant_name,cuisine)
        self.flavors = flavors

    def show_flavors(self):
        for flavor in self.flavors:
            print(f"展示这些冰淇凌:{flavor}")
if __name__ == "__main__":
    my_icecream = IceCreamStand('jack','uy',['奶油','红茶'])
    print(IceCreamStand.show_flavors(my_icecream))